const express = require('express');
const handle = require('../router_handle/collect_handle');
const app = express.Router();

// 添加收藏(post)
// /collect/add
// userid type(0music 1gedan 2mv) mvid gedanid musicid
app.post('/add', handle.addCollect);

// 取消收藏(post)
// /collect/delete
// userid type(0music 1gedan 2mv) mvid gedanid musicid
app.post('/delete', handle.delectCollect);

// 查看收藏(get)
// /collect/get
// userid type(0music 1gedan 2mv)
app.get('/get', handle.getCollect);

// 判断是否已收藏 只判断歌单和mv(get)
// /collect/pdCollect
// userid type(0music 1gedan 2mv) mvid gedanid
app.get('/pdCollect', handle.pdCollect);


module.exports = app